﻿using System;
using System.Net;
using System.Runtime.Serialization;
using System.Threading;

namespace SpringGraph
{
    [DataContract]
    //[KnownType(typeof(PymesredEntities.Entities.Process))]
    public class Item
    {
        public Item()
        {
            Id = "$$__thread" + Thread.CurrentThread.ManagedThreadId + "__item" + ++_Counter;
        }

        [DataMember]
        public string Id
        {
            get;
            set;
        }

        [DataMember]
        public object DataContext
        {
            get;
            set;
        }

        public virtual bool OkToMove()
        {
            return true;
        }

        internal static int _Counter = 0;
    }
}
